package com.qijian.business.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class QualityInsertDto {
    /**
     * 来源合同id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "来源合同id")
    private Long sourceId;

    /**
     * 来源合同名称
     */
    @ApiModelProperty(value = "来源合同名称")
    private String sourceName;

    /**
     * 供应商id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "供应商id")
    private Long supplierId;

    /**
     * 供应商名称
     */
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;


    /**
     * 申请人id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long applicantId;

    /**
     * 申请人名称
     */
    @ApiModelProperty(value = "申请人名称")
    private String applicantName;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请时间")
    private Date applyTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    List<QualityBasicDto> details;
}
